#ifndef _IUINTERFACESOCKET_HPP_
#define _IUINTERFACESOCKET_HPP_

#include "iuInterface.hpp"

/**
 * @brief Classe representant une interface reseau utilisant une socket UDP
 */
class iuInterfaceSocket : public iuInterface
{
public:
   iuInterfaceSocket();
   ~iuInterfaceSocket();
   
   virtual bool open(uint16_t port);
   virtual void close();
   virtual int  getReceiveFD();

   virtual uint16_t receive(char **buffer);
   virtual uint16_t send(char *buffer, uint16_t len);

private:
   static int m_socketOut;
   static int m_socketOutRef;
   
   int m_socketIn;
};

#endif
